package com.study.java.oop;

public class Book {
    public  String  author,title;
    public float price;
    public String publisher;
    public int published_Year;

    public Book(String author, String title, float price, String publisher, int published_Year) {
        this.author = author;
        this.title = title;
        this.price = price;
        this.publisher = publisher;
        this.published_Year = published_Year;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public int getPublished_Year() {
        return published_Year;
    }

    public void setPublished_Year(int published_Year) {
        this.published_Year = published_Year;
    }
    public void ceshi(){
        System.out.println("作者:"+author);
        System.out.println("书名:"+title);
        System.out.println("价格:"+price);
        System.out.println("出版社:"+publisher);
        System.out.println("出版年份:"+published_Year);

    }
}

